/**
 * CS575 Software Design
 * Group 6
 * Group Members: Anthony Davidson, Kendra Scheesley, Lyndsey Whitman, Stephen Zakrewsky
 * Date: May 19, 2012
 * Main Author(s): Stephen Zakrewsky, Lyndsey Whitman
 */
package edu.drexel.cs575.a3;

import edu.drexel.cs575.a3.location.LocaleEnum;
import edu.drexel.cs575.a3.location.Location;
import edu.drexel.cs575.a3.location.LocationProvider;

public class NewtonsWeightAlgorithm implements WeightAlgorithm
{
	private LocaleEnum locale;
	
	NewtonsWeightAlgorithm()
	{
		Location location = LocationProvider.getInstance().getLocation();		
		locale = location.getLocaleEnum();
	}
	
	@Override
	public double calculateWeight(double mass)
	{
		return mass * locale.getGravitationalAcceleration();
	}

}
